<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>个人中心</title>
        <link rel="stylesheet" href="/home/css/reset.css">
        <link rel="stylesheet" href="/home/css/head-footer.css">
        <link rel="stylesheet" href="/home/css/user-center.css">

    </head>
    <body>
        {include file='base/header' /}
        <div class="user-center-wrap">
            <div class="user-center">
                <div class="bread-nav">
                    <span>
                        <a href="javascript:void(0)">首页 ></a>
                    </span>
                    <span>
                        <a href="javascript:void(0)">用户中心</a>
                    </span>
                </div>
                <div class="user-center-main clearfixa">
                    {include file='base/menu' /}
                    <div class="user-center-right fr">
                        <p class="user-center-nav-title">
                            分销管理
                        </p>
                        <div class="form-top-space copyinput">
                            <label for="" class="information-nav-title">分销链接：</label>
                            <span class="client-link" >
                                <input style="width:300px" id="copy_content" type="text" value="http://y.hudongqishi.com/home/base/distribution?code={$business_data['code']}" readonly="readonly" />
                            </span>
                            <span class="client-copy-link"><button id='copy'>复制链接</button></span>
                        </div>
                        <!-- 分销码 -->
                        <div class="form-top-space">
                            <label for="" class="information-nav-title">我的分销码：</label>
                            <span class="client-number">
                                {$business_data['code']}
                            </span>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        {include file='base/footer' /}
    </body>
</html>
<script type="text/javascript" src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/jquery-zclip-master/jquery.zclip.js"></script>
<script>
    $(function () {
        $('#copy').zclip({
            path: '/static/jquery-zclip-master/ZeroClipboard.swf',
            copy: function () {
                return $('#copy_content').val();
            },
            afterCopy: function () {
                alert("复制成功");
            }
        });
    })
</script>